package com.yanqu.road.entity.enums.washe;

public enum eWasheOperateType {

    Move(1, "移动方块消除"),
    UseCard(2, "使用卡片"),
    UseSkill(3, "使用技能"),

    SendExpression(4, "发表情"), // 只会同步给接收方

    TurnPlayer(5, "红蓝方切换"),

    OpponentDisconnect(6, "对方掉线"),
    GameOver(7, "游戏结束"),

    SyncExpireTime(8, "同步超时时间"),

    ReConnect(9, "我方断线重连"),

    OpponentReConnect(11, "对方断线重连"),

    GuideStep(99, "新手引导步骤"),

    EndGuide(100, "结束新手引导"),
    ;

    public static eWasheOperateType getType(int value) {
        for (eWasheOperateType type : eWasheOperateType.values()) {
            if (type.getValue() == value) {
                return type;
            }
        }
        return null;
    }

    private int value;
    private String desc;

    eWasheOperateType(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
